home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 2.adf / lharc.doc < prev    next >
Text File  |  1991-10-22  |  28KB  |  706 lines

  1. ________________________________________________________________________
  2. ------------------------------------------------------------------------
  3.  
  4.  
  5.                         LHARC        vers. 1.21
  6.  
  7.                         for the Commodore AMIGA
  8.          Compatible with version 1.13 of Lharc for MSDOS systems
  9.  
  10.                   by Paolo Zibetti   (FidoNet 2:331/101.6)
  11.                   (assembler routines by  Paolo Toccaceli) 
  12.  
  13.  
  14. ------------------------------------------------------------------------
  15.  IMPORTANT NOTICE:  This program is copyrighted by Paolo Zibetti, but can
  16.  be freely distributed, providing that the following rules are respected.
  17.  - No change is made to the program nor to the accompaning documentation
  18.  - The package is always distributed in its complete form consisting of 
  19.    3 files: "Lharc", "Lharc.doc" and "Changes".
  20.  - Every form of distribution is allowed and encouraged, but no fee can 
  21.    be charged for this program exept for, possibly, the cost of magnetic 
  22.    media and/or disk duplication and shipping.
  23.  - Inclusion in PD software libraries such as Fish Disks is allowed, 
  24.    provided the fees charged for theese disks are comparable with those
  25.    charged by Fred Fish.
  26.  - The program cannot be distributed in any commercial product without the 
  27.    written consent of the author.
  28.  By copying, distributing and/or using the program you indicate your 
  29.  acceptance of the above rules.
  30.  Also remember that this program is supplied 'as is': the entire risk as
  31.  to the quality of the program is to the user. In no event will the author 
  32.  be liable for direct or indirect damage or loss resulting from the use
  33.  of this program.
  34. ------------------------------------------------------------------------
  35.  
  36. ________________________________________________________________________
  37. ------------------------------------------------------------------------
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  --- Introduction ---
  49.  
  50. Lharc is an archive program such as Arc and Zoo. It can store several
  51. files in one archive in a compressed form which is generally more
  52. efficent than that used by Arc and Zoo.  It also supplies all of the
  53. archive handling capabilities that an archive program should have.
  54. In particular it is able to store an entire directory tree 
  55. with one single command. This enables you, for example, to store an
  56. entire floppy-disk with a single command creating an archive which is
  57. usually shorter than those prodeced by Warp or even LhWarp (see the -r
  58. switch). 
  59. Another important feature of Lharc is its ability to preserve the file
  60. attributes (see the -a switch) and filenotes (i.e. the comments that
  61. AmigaODS can associate to each file).
  62. Its only weakness is compression speed: Zoo 2.0, for example, is
  63. faster, but if compression efficency is more important for you than
  64. compression time you'll surely appreciate this progam. (anyway
  65. decompression is much faster than compression)
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  --- Before starting ---
  77.  
  78. Lharc is a 'pure' program, i.e. you can make it resident via the
  79. 'resident' Amigados command just like any other command found in the
  80. c: directory. Keeping Lharc resident will greatly facilitate users
  81. who make an heavy use of Lharc (especially those who don't have an
  82. hard disk).
  83. If you have just received Lharc, beware that some copy programs and
  84. some archivers (including the zoo archiver which is used for
  85. distribution of Lharc) don't preserve file attributes, so the 'p'
  86. flag may not be set for the Lharc executable and Amigados won't
  87. understand that Lharc is a pure program. If so, just type the
  88. following line at the CLI prompt:
  89.  
  90.  protect Lharc p add
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  --- How to use ---
  102.  
  103. Lharc is run from CLI with the following command line:
  104.  
  105.   Lharc [<switches>] <Command> <Archive> [<dest path>] [<file patterns>]
  106.  
  107. items in square brackets are optional.
  108.  
  109.  
  110.  
  111.  
  112. <Command> can be any of the following (case is not significant):
  113.  
  114.  
  115.   e,x  extract files from archive
  116.        Extracts files from archives. If you specify some file names
  117.        or patterns only those files satisfying the patterns are
  118.        extracted, otherwise all the files in the archive are
  119.        extracted.
  120.        While extracting files, Lharc checks if a file by the same
  121.        name already exsists in the destination directory and prompts 
  122.        you before overwriting the old file with the extracted one 
  123.        (unless you specified the -m switch)
  124.        By default, if the files have a path name stored in the archive, they 
  125.        are extracted with their path and needed directories
  126.        are automatically created; use the -x0 switch to ignore path names.
  127.        See below under '<dest path>' for a discussion on where the
  128.        extracted files are stored.
  129.  
  130.   l    show archives contents
  131.        Displays the names of the files in an archive along with their
  132.        date, time, CRC, compression type, original lenght and
  133.        compressed lenght.
  134.        If the -x switch is specified file names are listed complete
  135.        with their path (if present in the archive), otherwise
  136.        only the name of the files is listed.
  137.        The 'l' command won't list the comments (filenotes) that may be
  138.        assiciated with a file: use the 'v' command to see them, too.
  139.  
  140.   v    Same as 'l', but default is to display full pathnames: i.e.
  141.        the 'v' command is equivalent to the 'l' command with the -x switch;
  142.        on the other hand the 'l' command is equivalent to the 'v' command
  143.        with the -x0 switch. 
  144.        Moreover 'v' will also show any filenote (i.e. comment) 
  145.        associated with the files; filenotes, if present,
  146.        are listed on a separate line preceded by a colon
  147.        (i.e. in the same format used by the AmigaDOS 'list' command).
  148.  
  149.   p    extract and print files to screen
  150.        same as 'e' and 'x', but extracted files are sent to stdout
  151.  
  152.   t    test archive integrity
  153.        Checks CRCs and checksums to ensure that the archive is not
  154.        corrupted. Lharc will test all the files on the archive, one
  155.        after each other, printing "OK" to the right of the file names
  156.        which are OK and "WARNING: CRC check failed" to the right of 
  157.        file names that are corrupted. At the end of the test the
  158.        message "Operation successful" means that all the files tested 
  159.        were OK, while the message "Operation not totally successful"
  160.        means that some files in the archive were corrupted (so you
  161.        will know of a corrupted file even if the warning message
  162.        relating to that file has scrolled away on the screen) 
  163.  
  164.   a    create archives or add to existing archives
  165.        Files are stored in alphabetical order, unless you change
  166.        this with the -S switch. Note however that sorting only
  167.        applies to the files beeing added in the current session,
  168.        i.e. if you add files to an existing archive containing
  169.        other files, the new files will be stored, in alphabetical
  170.        order, AT THE END of the archive: old and new files won't be
  171.        intermixed to preserve global alphabetical order.
  172.        If you try to archive a file and a file by the same name
  173.        already exists in the archive the file will not be added
  174.        and a message will be printed on the screen to inform you. 
  175.        By default only file names are stored in the archive, use the 
  176.        -x switch to store file names complete with their paths.
  177.        Also, by default file attributes are not stored, use the '-a'
  178.        switch to obtain this.
  179.  
  180.   m    move files into archivs
  181.        Same as add, but deletes original files after archiving them
  182.  
  183.   d    delete files from archives
  184.        You can delete from an archive a maximum of 150 files at a time,
  185.        if you find that they are too little, please let me know!  
  186.  
  187.   u    update files in archives
  188.        Same as with the 'a' command.  However, if a file already 
  189.        exists in the archive, LHarc will check its time stamp and will
  190.        keep the newer one and ignore the older one.
  191.  
  192.   f    freshen files in archives
  193.        Replaces a file in the archive with the newer one only if a file
  194.        with the same name already exists in the archive.
  195.        Otherwise, no action is taken.
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203. <Archive> is the name (eventually preceded by a path) of the
  204. archive you want to work on. If no extension is specified the default
  205. extension .LZH is used. 
  206. With the 'l' (or 'v'), 'e' (or 'x'), 'p', 't' and 'a' commands you can
  207. work on multiple archives by using wildcards (see 'file patterns'
  208. below for a list of accepted wildcards). For example "lharc v *.LZH"
  209. will show the contents of all the archives in the current directory,
  210. while "lharc x *.LZH *.c" will extract all the C source files
  211. contained in all the archives in the current directory.
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218. [<dest path>] 
  219. This parameter is significant only with the 'x' (or 'e') command and is
  220. ignored otherwise. It tells where to put the extracted files; if not
  221. specified, extracted files will go to the current directory.
  222. Please note that this paramenter must always end with '/' or ':'
  223. otherwise it will not be recognized as such and will be considered
  224. as one of the file patterns. 
  225. If the path specified by <dest path> (or equivalently the path stored
  226. in the archive) does not already exist, you will be prompted if you
  227. want new directories to be automatically created (unless you specified
  228. the -m switch, in which case directories will be created without any
  229. prompt).
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. [<file patterns>] rappresents an optional number of file names
  237. or file patterns. They indicate which files to
  238. extract/compress/list/delete, ecc. 
  239. Accepted wild cards are the standard AmigaDOS '#' and '?' plus the '*'
  240. which is a synonim of '#?'. Since however the asterisk is a valid
  241. caracter in AmigaDOS file names I provided the '**' sequence as an
  242. escape.  So if you want to refer to a file name containing an asterisk
  243. just double the asterisk in the file name.  
  244. Example:  '*.c' is equivalent to '#?.c' and refers to all the files
  245. ending with '.c', while 'my**file' refers to the file 'my*file'.
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. [<switches>] rappresents an optional number of switches that are used
  253. to change the behaviour of the program.
  254. A switch is composed by  a leading '-' followed by one letter; unlike
  255. commands which are case insensitive, switches are case sensitive.
  256. An important point is that if you want to specify more than one switch,
  257. every switch must be preceded by its own dash, i.e. to activate the 'x'
  258. and 'm' switches you must enter "-x -m" and NOT "-xm". 
  259. You can store your favourite switch configuration in an environment
  260. variable (see below) so that you don't have to type them every time.
  261. All the switches that don't take a parameter can be followed by a '0' 
  262. which turns off the function, while the switch alone or the switch 
  263. followed by a '1' turns the function on: i.e. -x means "use extended
  264. file names",  while -x0 means "don't use them". So you can override
  265. the default settings or the settings you specified in the environment
  266. variable "LHARC". 
  267. Default value for every switch is off, exept for the -x switch which is
  268. by default on with the 'x' 'e' 'd' and 'v' commands and off with the
  269. other  commands.
  270.  
  271. Here is a summary of the available switches:
  272.  
  273.  
  274.   -p  Pause after loading        [note that this is lowercase 'p']
  275.       Causes Lharc to wait for the user to press RETURN before
  276.       executing a command. This allows floppy disk users to swap disks
  277.       after loading Lharc.
  278.  
  279.   -m  no Message for query
  280.       Suppresses all the queries Lharc normally issues before
  281.       overwriting existing files or before creating new directories
  282.       If you specify this switch Lharc will behave as if you choose
  283.       the default action (indicated by an uppercase letter) in
  284.       response to all the questions. This switch also disables
  285.       autoshowing of files (see 'Autoshow files' below)
  286.  
  287.   -x  use eXtended file names
  288.       By default, LHarc stores only the file names of
  289.       files and disregards the names of the directories in which
  290.       they reside.  This switch, used with the 'a' command, tells LHarc 
  291.       to extend all file names with directory names; with the 'x' 'e' 'd'
  292.       and 'v' commands the -x switch is automatically turned on: use 
  293.       -x0 if you want to turn it off thus ignoring pathnames with these 
  294.       commands.
  295.  
  296.   -n  No progress indicator
  297.       Suppresses the display of the number of bytes beeing processed
  298.       during compression or decompression. May be useful if you
  299.       redirect to a file the output of Lharc.
  300.       Note: this version of Lharc allows the -N switch as a synonim of -n :
  301.       but this might change in future versions, so preferibly use the
  302.       lowercase letter.
  303.  
  304.   -w  set Work directory
  305.       Use this switch to choose your own directory for temporary files.
  306.       The directory name must immediatly follow the letter 'w' without
  307.       any leading space, i.e. to set the 'temp' directory on your
  308.       hard-disk as the working directory you must write "-wdh0:temp".
  309.       See below "Temporary files" for a discussion on where temporary
  310.       files are stored in the absence of this switch. 
  311.  
  312.   -P  set Priority          [note that this is uppercase 'P']
  313.       Use this switch to set the priority with which Lharc will be
  314.       executed. Priority must be in the range -5..+5  and must
  315.       immediately follow the 'P' letter without blanks in between.
  316.       By default Lharc is excuted with the same priority of
  317.       the task that invoked it; using this switch will set the new
  318.       priority immediatley after loading and will set back the priority
  319.       to the original value immediately after terminating.
  320.       If you want to do something else with your Amiga, for example
  321.       editing a letter, while Lharc is compressing a long file, I
  322.       suggest that you set Lharc's priority to one less than that of
  323.       the other program, i.e. if you started your editor with the usual
  324.       priority of zero then invoke Lharc with the '-P-1' switch to set its
  325.       priority to -1
  326.  
  327.   -a  consider file Attributes
  328.       By default Lharc will ignore file attributes (i.e. the flags
  329.       indicating protection from deletion, and so on) for maximum
  330.       compatibility with the MSDOS version: in other words it will
  331.       store files with an attribute bit pattern which is suitable for 
  332.       MSDOS machines while during extraction it will ignore the
  333.       attributes stored in the archives, setting the attributes of the
  334.       extracted files to the usual '----rwed'.
  335.       If you use this switch, on the contrary, files will be stored
  336.       with their original attributes and during extraction the
  337.       stored attributed will be restored.
  338.       Remember that, to effectively preserve file attributes, you must
  339.       use this switch both during compression and during extraction.
  340.       Of course AmigaDOS file attributes are meaningless to MSDOS and
  341.       vice-versa; so extract files with the -a switch only if you are
  342.       sure that they contain AmigaDOS file attributes and similarly
  343.       compress files with the -a switch only if you are sure that the
  344.       archive will be unpacked only by Amigas and not by MSDOS
  345.       machines. (Anyway no harm is done if this rule is not respected:
  346.       extracted files will simply have strange attributes)
  347.  
  348.   -u  convert file names to Uppercase
  349.       By default Lharc stores file names/paths with thier original case,
  350.       if you use this switch they will be converted to uppercase.
  351.       See below 'Compatibility' for a possible use of this switch.
  352.  
  353.   -r  Recursively collect files
  354.       This switch instructs Lharc to search for files matching the
  355.       specified patterns not only in the specified directories, but also
  356.       in all the subdirectories that may be found in the specified
  357.       directories. For example: "Lharc -r a archive.lzh df1:source/*.c" 
  358.       will search for files whose name ends with ".c" in "df1:source/"
  359.       and in all the subdirectories that may be contained in the
  360.       "df1:source" directory. 
  361.       Another example: "Lharc -r a archive.lzh df1:*" will archive the
  362.       entire disk in drive df1:, including all its subdirectories.
  363.       (you may wish to add the -a switch to the above line in order to
  364.       be able to re-build exactly the disk, including file attributes)
  365.       Very powerfull, isn't it ?
  366.       When you specify the -r switch, files are always stored with their
  367.       path name, i.e. the -r switch automatically turns on the -x switch,
  368.       too.
  369.  
  370.   -S  Set sorting criteria          [note that this is an UPPLERCASE S]
  371.       This switch sets the sort criterium for files beeing added to
  372.       archives. The '-S' must be immediatly followed by one or two
  373.       characters, i.e. -Sxy 
  374.       'x' can be any of the following:
  375.          0  Don't sort files
  376.          a  Alphabetical sort
  377.          c  Chronological sort
  378.       'y', if present, can be any of the following:
  379.          a  Ascending order
  380.          d  Descending order
  381.       If 'y' is absent, ascending order is assumed by default.
  382.       Examples:
  383.          -Scd          Sort chronologically in descending order
  384.          -Sc  or -Sca  Sort chronologically in ascending order.
  385.          -S0           Don't sort at all
  386.          -Saa          Sort alphabetically in ascending order, this is
  387.                        the default action which is taken if you don't
  388.                        specify this switch. 
  389.  
  390.   -b  Set I/O buffer size
  391.       Big I/O buffers can considerably speed up some operations of Lharc
  392.       (espacially with hard disks) however if you are low on memory you
  393.       may prefer to use small I/O buffers.
  394.       This switch lets you set the amount of memory that Lharc will use
  395.       as an I/O buffer: the number of Kbytes of memory to be used must
  396.       immediately follow the 'b' without any spaces in between, e.g. 
  397.       -b20 tells Lharc to use 20 kbytes of memory for I/O buffers.
  398.       Any number between 6 and 37 is valid, default is using 11 Kbytes:
  399.       if you are low on memory you can lower this amount, but if you have
  400.       plenty of memory I suggest that you rise it. 
  401.       I suggest that you set this switch at the value you like in the 
  402.       environment variable 'LHARC' (see below) so that you don't have 
  403.       to specify this switch every time you invoke Lharc.
  404.  
  405.   -f  Ignore filenotes
  406.       By defaults Lharc archives files complete with their comment
  407.       (filenote). If you set this switch filenotes won't be stored in
  408.       archives and files beeing extracted won't have their filenote
  409.       even if it's present in the archive.
  410.       There is no compatibility problem, but if you are not interested
  411.       in filenotes you may set this switch to reduce the archive size
  412.       (filenotes are stored in uncompressed form, so if you have long
  413.       filenotes they can increase the size of the archive)
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  --- Setting switches in an environment variable ---
  425.  
  426.    You may set any of LHarc's default switches with the environment
  427.    variable 'LHARC':
  428.    So, if you, for example, want to always archive files with their
  429.    attributes, use the maximum allowed I/O buffer size and use 
  430.    'dh0:mytemp/' as a working directory you simply type:
  431.  
  432.    SenEnv LHARC  "-wdh0:mytemp -a -b37"
  433.  
  434.    (don't forget the quotes): now Lharc will behave as if you typed
  435.    the above switches every time you invoke it. You can insert the
  436.    setenv command in your startup-sequence so that it's automatically
  437.    executed every time you turn your computer on.
  438.    Of course, you can always override the default settings
  439.    estabilisced in the enviroment variable with the command line: for
  440.    example an '-a0' in the command line will override the '-a' found 
  441.    in the above enviromnet variable.
  442.    Please note that the 'setenv' command is only available in
  443.    Workbench 1.3 and higher: if you are using older versions of the
  444.    O.S. this feature is not available.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  --- Autoshow files ---
  456.  
  457. Suppose that your archive contains an important text file that you
  458. want to be sure it will be read by the guy who unpacks the archive.
  459. The file may for example contain a copyright notice or some special
  460. instructions for unpacking (if you have packed the archive with the -a
  461. switch you may wish to remind to the one who unpacks the archive the
  462. he/she has to use the -a switch too).
  463. For this purpuse this version of Lharc introduces autoshow files: while
  464. unpacking an archive, if Lharc encounters a file whose name ends with
  465. ".TXT.DISPLAYME" (case is not significant and quotes must not be
  466. included, of course), it first extracts the file (removing the .DISPLAYME
  467. extension) and then displays in a window the text found in that file
  468. waiting for the user to press RETURN before proceeding.
  469. You can add as many autoshow files as you want, for example one at the
  470. beginning and one at the end of the archive.
  471. Autoshowing of files is disabled when the -m switch is active so that
  472. a non-interactive unpacking session is allowed.
  473. Lharc uses the standard CON: device to open a window for displaing text,
  474. so you can insert ANSI codes in your autoshow files to make your
  475. messages nicer. Lharc will adjust the size of the window according to
  476. the number of lines contained in the text file, but the maximum allowed
  477. size is that of an NTSC screen (200 pixels), so if your text is longer
  478. than 20 lines it will scroll away.
  479. Finally, please note that this feature is unique to the Amiga version of
  480. Lharc (for now...) so remember that if your archive will be unpacked on
  481. another machine (or an an Amiga using Lharc version 1.0 or lower)
  482. autoshow files will simply be extracted without displaying them on the
  483. screen; anyway your important text file will still be there for later
  484. reading by the user and no compatibility problems will arise.
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  --- Temporary files ---
  497.  
  498. While compressing files Lharc creates a temporary file called
  499. 'Lharc.TMP_XXXXXX' where XXXXXX is a hex digit representing the address
  500. of its own Task structure as returned by Exec's FindTask(NULL).  
  501. The reason for the XXXXXX part of the name is that if you run multiple
  502. copies of Lharc at the same time each copy will create its own temporary
  503. file with a different name (usefull for multiline BBSes for example).
  504. Here is how Lharc decides where to store temporary files.
  505. If you specify a path with the -w switch temporary files are stored
  506. there, otherwise if the T:  logical device is assigned they will be
  507. stored in that directory, otherwise they will go to the current
  508. directory.  
  509. If you are not using the -w switch, in order to increase compression
  510. speed, I raccomand that you assign T:  to a directory in the ram-disk.
  511. Note however that T:  is usually automatically assigned to 'ram:t' in
  512. the startup-sequence of the standard Workbench, so, unless you have
  513. modified the startup-sequence, you don't have to worry about this.
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  --- Corrupted archives ---
  528.  
  529. This version al Lharc for the Amiga has the capability of automatically
  530. handle corrupted archives.
  531. A Lharc archive is made up of several compressed files each precedeed by
  532. a header containing information about file name, date, lenght,...
  533. To ensure that the archive is not corrupted the header also contains a
  534. 16 bit CRC of the file and an 8 bit checksum of the header itself.
  535. If during extraction Lharc finds a corrupted file (i.e. one whose CRC
  536. does not match with the one stored in the header) the file is extracted
  537. anyway, but a warning is printed on the screen.
  538. The worst case comes when the header of a file is corrupted: in this case
  539. the file cannot be extracted even if the file itself is not corrupted.
  540. In this case Lharc will automatically skip the corrupted entry by
  541. starting a search for the next valid entry in the archive and will
  542. print a message like "WARNING: skipping extraneous/corrupted data"
  543. The reason for which it says "extraneous/corrupted" is that an Lharc
  544. archive might happen to contain parts that Lharc cannot recognize as valid
  545. archive entries even it's not corrupted. This happens when you are
  546. extracting files from a self-extracting archive produced by the MSDOS
  547. version of Lharc, since a self-extracting archive contains 8086
  548. extraction code which the Amiga-Lharc sees as extraneous data.
  549. The only extraneous data which is passed without warnings is additional
  550. bytes at the end of an archive: since they are likely to consist of
  551. zero padding due to XMODEM transfer they are totally ignored.
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  --- Return codes ---
  565.  
  566. When Lharc finishes his work, it returns to the operating system one of
  567. 3 possible return codes:
  568.  
  569.  0  Everything was OK  (the message "Operation successful" is printed on
  570.     the screen). 
  571.  5  Lharc finished its work, but something went wrong, for example Lharc
  572.     encountred a corrupted entry in the archive, but was able to continue
  573.     extracting/testing the rest of the archive (the message "Operation not
  574.     totally succesful" is printed on the screen).
  575.  20 A fatal error occurred and Lharc was unable to continue its work (an
  576.     appropriate message exlpaining the probelm is printed on the sceen) 
  577.  
  578. Thus you can test the succes of operation in your script files by means 
  579. of the 'failat' statement and the 'if warn' test.
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  --- Bugs ---
  592.  
  593. No known known bugs remain in this version.
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  ---- Compatibility ---
  606.  
  607. This program is aimed at full compatibility with the MSDOS version
  608. 1.13 of Lharc. 
  609. A few little problems might arise from some file names that are legal
  610. under AmigaDOS, but illegal under MSDOS. As a matter of facts AmigaDOS
  611. allows a wider range of file names (almost every caracter in the ASCII
  612. set is allowed and file names can be longer than 8 characters). For
  613. the greatest convenience of Amiga users, I choose not to restrict the
  614. file name range to accomplish the MSDOS rules, but if you expect that
  615. your archives will be unpacked on an MSDOS machine you'd better
  616. rispect the MSDOS limits.
  617. Also note that, although MSODS Lharc version 1.13 CAN extract files
  618. whose names contain lowercase letters, its pattern matching functions
  619. don't work properly with lowercase file names. So if you want to
  620. extract an Amiga-created archive on an MSDOS machine by using pattern
  621. matching functions (for example to extract only some files instead of
  622. the whole archive) you have to create the archive on the Amiga with
  623. the -u switch. 
  624. Finally, to attain 100% compatibility you shuold not use the '-a' switch
  625. (see above in the switch descriptions)
  626.  
  627. Also note that the MSDOS version of Lharc has the additional
  628. capability of extracting files from archives produced by Larc (a
  629. pupular Japanise archive program): this feature will not be
  630. implemented in the Amiga version.
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  ---- Acknowledgements ---
  644.  
  645. First of all I give credit to Haruyasu Yoshizaki for devising such an
  646. efficent compression algorythm as LZHUF.
  647. Second, since the source to the MSDOS version of Lharc is scarcely
  648. portable (lots of 8086 assembler ruotines and MSDOS-dependent C
  649. functions), I had to rewrite the program from scratch. Note however
  650. that for LZHUF compression/decompression I have used as a starting
  651. point a 'C' source for an example of single file compression
  652. which I found on a BBS. Although the code has been now remanaged (and
  653. partially rewritten in assembler by Paolo Toccaceli) it nevertheless
  654. was invaluable to me.
  655. For sake of correctness I quote here the the header found on this
  656. source:  
  657.  
  658. /*
  659.  * LZHUF.C English version 1.0
  660.  * Based on Japanese version 29-NOV-1988
  661.  * LZSS coded by Haruhiko OKUMURA
  662.  * Adaptive Huffman Coding coded by Haruyasu YOSHIZAKI
  663.  * Edited and translated to English by Kenji RIKITAKE
  664.  */
  665.  
  666. I whish to thank the above people whose work has been of
  667. foundamental importance for this project.
  668. Thanks to Stefan Boberg for suggesting how to store filenotes in the
  669. archive structure that didn't provide space for them. 
  670. Many thanks also go to all the people who contributed with suggestions
  671. and bug reports and particularly to Luca Spada for his invaluable beta
  672. testing work.
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  --- How to reach me ---
  686.  
  687. Please send suggestions, comments and bug reports to:
  688.  
  689. Paolo Zibetti       Fidonet 2:331/101.6
  690.  
  691. node 2:331/101 (AmnesiA) is also the official distribution node for
  692. Amiga-Lharc: you'll always find the latest version available on this
  693. board. If you are an officially listed FidoNet node you can f'request
  694. the latest version of Lharc with the magic file name AMILHARC.
  695.  
  696. Amnesia (2:331/101)  phone +39-331-263425  (v32/HST, upto 14400 bps)
  697.  
  698.  
  699.  
  700. For those who don't have access to a FidoNet node, my Fidonet point
  701. can also be reached from Internet/UUCP at the following address:
  702.  
  703. Paolo.Zibetti@p6.f101.n331.z2.fidonet.org
  704.  
  705.  
  706.